
import request from '@/router/axios'

export function fetchList (query) {
  return request({
    url: '/admin/user/list',
    method: 'get',
    params: query
  })
}


export function getObj (query) {
  return request({
    url: '/admin/user/detail',
    method: 'get',
    params: query
  })
}

export function deleteSys (query) {
  return request({
    url: '/admin/user/deleteSys',
    method: 'get',
    params: query
  })
}

export function putObj (obj) {
  return request({
    url: '/admin/user/put',
    method: 'post',
    data: obj
  })
}


export function updateUser(query) {
  return request({
    url: "/admin/user/update",
    method: "post",
    data: query
  });
}



export function fetchShensuList (query) {
  return request({
    url: '/admin/user/shensuList',
    method: 'get',
    params: query
  })
}

export function putShensuObj (obj) {
  return request({
    url: '/admin/user/shensuPut',
    method: 'post',
    data: obj
  })
}